import express from 'express';
import { addProduct, deleteProduct, updateProduct, getProductById, getProducts } from '../controllers/ProductController';

const router = express.Router();

router.post('/', addProduct);
router.delete('/:id', deleteProduct);
router.post('/update', updateProduct);
router.get('/:id', getProductById);
router.post('/page', getProducts);

export default router;
